\documentclass[a4paper,11pt,oneside,headsepline, footsepline, titlepage,pagebackref]{book}
\usepackage{filecontents}
\usepackage{a4}							
\usepackage{graphicx}										
\usepackage{moreverb}   									
\usepackage{textcomp}										
\usepackage[small,nooneline,bf,hang]{caption2}			
\usepackage{subfigure}
\usepackage[ansinew]{inputenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=apa,autocite=inline]{biblatex}
\bibliography{references}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{color}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fancyvrb}
\usepackage{listings}
\usepackage{setspace}
\usepackage{verbatim}

\subfiglabelskip=0pt

\onehalfspacing

\setlength{\parskip}{5pt plus 2pt minus 1pt}
\setcounter{table}{1}
\oddsidemargin1.5cm
\textwidth14cm
\frenchspacing

\clubpenalty = 10000
\widowpenalty = 10000 
\displaywidowpenalty = 10000
\sloppypar

\setcounter{secnumdepth}{2} 
\setcounter{tocdepth}{2}

\lstset{captionpos=b, breaklines=true, basicstyle={\footnotesize\ttfamily}} 

\makeindex 
\begin{document}
\author{Werner Flatz}
\title{Title}
\date{August 2011}

\frontmatter
\parindent 0pt
\input{cover}

\parindent 10pt

\input{abstract}

\tableofcontents

\mainmatter
\input{introduction}
\input{foundation}
\input{review}
\input{artifact}
\input{evaluation}
\input{conclusion}
\printbibliography
\input{appendix}

\backmatter
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures

\addcontentsline{toc}{chapter}{\listtablename}
\listoftables

\input{affidavit}

\end{document}